import request from '@/utils/request'

// 查询企业报价库列表
export function listQybjk(query) {
  return request({
    url: '/gd/qybjk/list',
    method: 'get',
    params: query
  })
}

// 查询企业报价库详细
export function getQybjk(id) {
  return request({
    url: '/gd/qybjk/' + id,
    method: 'get'
  })
}

// 新增企业报价库
export function addQybjk(data) {
  return request({
    url: '/gd/qybjk',
    method: 'post',
    data: data
  })
}

// 修改企业报价库
export function updateQybjk(data) {
  return request({
    url: '/gd/qybjk',
    method: 'put',
    data: data
  })
}

// 删除企业报价库
export function delQybjk(id) {
  return request({
    url: '/gd/qybjk/' + id,
    method: 'delete'
  })
}

export function importQybjdData(fjId) {
  return request({
    url: '/gd/qybjk/importQybjdData/' + fjId,
    method: 'post'
  })
}
